<!--
 * @Author: chenzechao
 * @Date: 2024-01-26 13:36:32
 * @LastEditors: chenzechao
 * @LastEditTime: 2024-02-05 17:20:47
 * @FilePath: \accesscontrolui\src\views\xtpz\attendance-group\index.vue
 * @Description: 
-->
<template>
  <panel>
    <template slot="search">
      <Search @on-search="getList" />
    </template>
    <template slot="table">
      <list
        v-on="$listeners"
        :listType="listType"
        :pageNum="form.pageNum"
        :pageSize="form.pageSize"
        :dataList="dataList"
        
      />
    </template>
  </panel>
</template>
<script>
import Panel from "@/components/panel.vue";
import List from "./components/list.vue";
import Search from "./components/search.vue";

export default {
  name: "classes",
  props: {
    listType: {
      type: String,
      default: "free",
    },
  },

  components: {
    Panel,
    List,
    Search,
  },
  data() {
    return {
      dataList: [{name:'22412'},{name:'22412'},{name:'22412'},{name:'22412'}],
      form: {
        pageSize: 10,
        pageNum: 1,
      },
    };
  },
  methods: {
    getList(data) {
      Object.assign(this.form, data);
    },
  },
};
</script>
